package com.welsmann.app.start.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

import com.welsmann.app.start.dao.BaseDAO;
import com.welsmann.app.start.dao.INewsTypeDAO;
import com.welsmann.app.start.entity.NewsType;

@Component("NewsTypeDAO")
public class NewsTypeDAO extends BaseDAO implements INewsTypeDAO {

	private HibernateTemplate _ht = null;
	
	@Override
	public List<NewsType> getAll() {
		_ht = new HibernateTemplate(super.sessionFactory);
		return _ht.find("from NewsType order by no");
	}

}
